using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Forecast.Business;
using Forecast.Database;

public partial class Portfolio : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Forecast.Database.Load loader = new Forecast.Database.Load(ConfigurationManager.ConnectionStrings["ForecastDB"].ConnectionString);
        string playerName = UserHelper.GetUserName(Convert.ToInt32(Request.QueryString["traderid"]));
        Title = "The Forecast Exchange - " + playerName + "'s portfolio";
        Player player = loader.GetPlayer(Convert.ToInt32(Request.QueryString["traderid"]));
        _topNews.BindData(player);        
    }
}
